package com.biz.executor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.biz.service.HService.schedule.TestServiceI;


@Component
@Scope("prototype")
public class TestExecutor implements Runnable {
	private static final Logger LOGGER = LoggerFactory.getLogger(TestExecutor.class);

	@Autowired
	private TestServiceI testExecutor;
	
	private Integer id;

	@Override
	public void run() {
		try {
			LOGGER.info("into method test.run...");
			
			// 任务调度器demo
			testExecutor.test();
		} catch (Exception e) {
			LOGGER.error("testExecutor.run exception: {}", e);
		}
		
		LOGGER.info("out of method MemberYearPointsCleanExecutor.run...");
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
